package com.meilai.project.entity.media;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 点位类型规格
 * </p>
 *
 * @author xchen
 * @since 2022-05-24
 */
@Data
@TableName("media_type_spec")
@ApiModel(value = "MediaTypeSpec对象", description = "点位类型规格")
public class MediaTypeSpec {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键 ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "媒体类型ID")
    private Long media_type_id;

    @ApiModelProperty(value = "规格名称")
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated_at;
    private LocalDateTime deleted_at;


    public static final String MEDIA_TYPE_ID = "media_type_id";

    public static final String NAME = "name";

    public static final String WIDTH = "width";

    public static final String HEIGHT = "height";

    public static final String MATERIAL = "material";

    public static final String DURATION = "duration";

    public static final String TIMES = "times";

    public static final String PRICE_DAY = "price_day";

    public static final String PRICE_WEEK = "price_week";

    public static final String PRICE_MONTH = "price_month";

}
